package com.nulgame.bukkit.plugin.responsebuilder;

import com.nulgame.bukkit.plugin.resource.Resource;

public class AntiChatOverFlowResponseBuilder extends GenericResponseBuilder {
	private Long m_inMillisTime;
	public AntiChatOverFlowResponseBuilder(String responseFormat,String playerName , String message, Long inMillisTime) {
		super(responseFormat, playerName, message);
		m_inMillisTime = inMillisTime;
	}

	@Override
	public String toResponse() {
		String response = super.toResponse();
		if(response == null){
			return null;
		}
		response =  response.replaceAll(Resource.IN_MILLIS_TIME, m_inMillisTime.toString());
		return response;
	}

}
